package com.xxh.blog.config;


import com.jagregory.shiro.freemarker.ShiroTags;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Configuration
public class FreeMarkerConfig {

    @Autowired
    freemarker.template.Configuration configuration;

    @PostConstruct
    public void setup(){
        configuration.setSharedVariable("shiro",new ShiroTags());
    }
}
